package zhu.areas.user.data;

import java.util.Date;

import zhu.areas.dic.data.FieldType;
import zhu.areas.dic.data.Role;


/**@hibernate.class table="T_Capital"  dynamic-insert="true" dynamic-update="true"
 * @author Administrator
 * */
public class Capital {
	
	private int capID;
	private Role capType;
	private String capName;
	private String conUsername;
	private String phone;
	private String mobile;
	private String website;
	//private int cField;
	private FieldType capField;
	private String address;
	private String detail;
	private Date appTime;
	private int state;
	
	private User user;
	
	
	public Capital() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Capital(int capID) {
		super();
		this.capID = capID;
	}

	/**
	 * @hibernate.id column="CapID" unsaved-value="null"
	 *               generator-class="foreign"
	 * @hibernate.generator-param name="property" value="user"
	 */
	public int getCapID() {
		return capID;
	}
	public void setCapID(int capID) {
		this.capID = capID;
	}
	
	/** 
	*@hibernate.many-to-one class="zhu.areas.dic.data.Role"    not-null="true"
	* column="CapType" 
	*/
	public Role getCapType() {
		return capType;
	}
	public void setCapType(Role capType) {
		this.capType = capType;
	}
	
	/**
	 * @hibernate.property column = "CapName"    not-null="true"
	 * @return
	 */
	public String getCapName() {
		return capName;
	}	
	public void setCapName(String capName) {
		this.capName = capName;
	}

	/**
	 * @hibernate.property column = "ConUsername"    not-null="true"
	 * @return
	 */
	public String getConUsername() {
		return conUsername;
	}
	public void setConUsername(String conUsername) {
		this.conUsername = conUsername;
	}
	
	/**
	 * @hibernate.property column = "Phone"    not-null="true"
	 * @return
	 */
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	/**
	 * @hibernate.property column = "Mobile" 
	 * @return
	 */
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	/**
	 * @hibernate.property column = "Website" 
	 * @return
	 */
	public String getWebsite() {
		return website;
	}
	public void setWebsite(String website) {
		this.website = website;
	}
	
	/** 
	*@hibernate.many-to-one class="zhu.areas.dic.data.FieldType"    not-null="true"
	* column="CapField" 
	*/
	public FieldType getCapField() {
		return capField;
	}
	public void setCapField(FieldType capField) {
		this.capField = capField;
	}
	
	/**
	 * @hibernate.property column = "Address"    not-null="true"
	 * @return
	 */
	public String getAddress() {
		return address;
	}	
	public void setAddress(String address) {
		this.address = address;
	}
	
	/**
	 * @hibernate.property column = "Detail"   
	 * @return
	 */
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	/**
	 * @hibernate.property column = "AppTime"    not-null="true"
	 * @return
	 */
	public Date getAppTime() {
		return appTime;
	}
	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}

	/**
	 * @hibernate.property column = "State"    not-null="true"
	 * @return
	 */
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	/**
	 * @hibernate.one-to-one column="userID"  class="zhu.areas.user.data.User"
	 *                      
	 */
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}

	
	

}
